using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ITS.Core.Domain.Common;
using ITS.DAL.Common;

namespace ITS.DAL.Concrete.EF.Common
{
    public class EFSettingRepository : ISettingRepository
    {
        private readonly EnterpriseContext context = new EnterpriseContext();
        public Setting GetSettingByName(string strName)
        {
            return context.Settings.Single(st => st.Name == strName);
        }
    }
}
